// 函数组件
function WinButton () {
  let name = '添加'
  function add () {
    console.log('触发添加！')
  }
  return (
    <div>
      <h1 className="cmi-nav">按钮</h1>
      <button onClick={add}>{name}</button>
    </div>
  )
}

export default WinButton;